﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="cargardatos.aspx.cs" Inherits="TestApp.cargardatos" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript">
        function cargajs()
        {
            TestApp.WebService1.cargardatosmini(cargar);
        }
        function cargar(res)
        {
            var a = res;
            TestApp.ServRefWS.datosmini
           /* foreach (ServRefWS.datosmini dm1 in dm)
            {
                if (dm1.varobj == 1)
            {
                TextBox1.Text = dm1.valorobj.ToString();
                TextBox9.Text = dm1.cotainf.ToString();
                TextBox11.Text = (dm1.cotasup != null) ? dm1.cotasup.ToString() : "infinito";
            }
        else
        {
                    TextBox2.Text = dm1.valorobj.ToString();
            TextBox10.Text = dm1.cotainf.ToString();
            TextBox12.Text = (dm1.cotasup != null) ? dm1.cotasup.ToString() : "infinito";
        }
        }*/
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="smajax" runat="server">
            <Services>
                <asp:ServiceReference  Path="http://localhost:50638/TestApp/WebService1.asmx"/>
            </Services>
        </asp:ScriptManager>
        <div>
            <table>
                <tr>
                    <td colspan="4">Minimzar</td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="TextBox1" runat="server" Width="35"></asp:TextBox></td>
                    <td>
                        <asp:Label ID="Label1" runat="server" Text="X1"></asp:Label></td>
                    <td>
                        <asp:TextBox ID="TextBox2" runat="server" Width="35"></asp:TextBox></td>
                    <td>
                        <asp:Label ID="Label2" runat="server" Text="X2"></asp:Label></td>
                </tr>
            </table>
            <br />
            <table>
                <tr>
                    <td colspan="6">Sujeto a:</td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="TextBox3" runat="server" Width="35"></asp:TextBox></td>
                    <td>
                        <asp:Label ID="Label3" runat="server" Text="X1"></asp:Label></td>
                    <td>
                        <asp:TextBox ID="TextBox4" runat="server" Width="35"></asp:TextBox></td>
                    <td>
                        <asp:Label ID="Label4" runat="server" Text="X2"></asp:Label></td>
                    <td>&lt;=</td>
                    <td>
                        <asp:TextBox ID="TextBox5" runat="server" Width="35"></asp:TextBox></td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="TextBox6" runat="server" Width="35"></asp:TextBox></td>
                    <td>
                        <asp:Label ID="Label5" runat="server" Text="X1"></asp:Label></td>
                    <td>
                        <asp:TextBox ID="TextBox7" runat="server" Width="35"></asp:TextBox></td>
                    <td>
                        <asp:Label ID="Label6" runat="server" Text="X2"></asp:Label></td>
                    <td>&lt;=</td>
                    <td>
                        <asp:TextBox ID="TextBox8" runat="server" Width="35"></asp:TextBox></td>
                </tr>
            </table>
            <br />
            <table>
                <tr>
                    <td colspan="9">limitado a</td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label7" runat="server" Text="X1"></asp:Label></td>
                    <td>&gt;</td>
                    <td>
                        <asp:TextBox ID="TextBox9" runat="server" Width="35"></asp:TextBox></td>
                    <td>
                        <asp:Label ID="Label8" runat="server" Text="X2"></asp:Label></td>
                    <td>&gt;</td>
                    <td>
                        <asp:TextBox ID="TextBox10" runat="server" Width="35"></asp:TextBox></td>
                    <td>&nbsp;&nbsp;&nbsp;</td>
                    <td>
                        <asp:Label ID="Label9" runat="server" Text="X1"></asp:Label></td>
                    <td>&lt;</td>
                    <td>
                        <asp:TextBox ID="TextBox11" runat="server" Width="35"></asp:TextBox></td>
                    <td>
                        <asp:Label ID="Label10" runat="server" Text="X2"></asp:Label></td>
                    <td>&lt;</td>
                    <td>
                        <asp:TextBox ID="TextBox12" runat="server" Width="35"></asp:TextBox></td>
                </tr>
            </table>
        </div>
        <input id="Button1" type="button" value="button" onclick="cargajs(); return false;" />
        <asp:Button ID="Button2" runat="server" Text="Cargar PostBack" OnClick="Button2_Click" />
        <asp:Button ID="Button3" runat="server" Text="Resultado PostBack" OnClick="Button3_Click" />
            <br />
        <asp:Label ID="Label11" runat="server" Text="Label"></asp:Label>
    </form>
</body>
</html>
